import random


n = eval(input(""))
ls = [m for m in range(1, n+1)]
random.seed(n)
m = random.randint(1, n)
print(ls)
for i in ls:
    if i % m == 0:
        ls.remove(i)

print(ls)
